package br.com.moxirpt.test.jbehave;

import java.util.Locale;

import org.jbehave.scenario.definition.KeyWords;
import org.jbehave.scenario.i18n.I18nKeyWords;
import org.jbehave.scenario.i18n.StringEncoder;
import org.jbehave.scenario.steps.Steps;
import org.jbehave.scenario.steps.StepsConfiguration;

public class GenericStep extends Steps {

	 public GenericStep(){
		 this(Thread.currentThread().getContextClassLoader());
	 }
	 public GenericStep(ClassLoader classLoader) {
	    super(new StepsConfiguration(keywordsFor(new Locale("pt"), classLoader)));
	 }
	 
	 protected static KeyWords keywordsFor(Locale locale, ClassLoader classLoader) {
			return new I18nKeyWords(locale, new StringEncoder(), "br/com/moxirpt/test/jbehave/keywords", classLoader);
	}


}
